<?php

use App\Http\Controllers\Web\IndexController;
use App\Models\Category;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', [IndexController::class, 'welcome'])->name('home');

Route::get('/settled', [IndexController::class, 'settled'])->name('settled');

Route::get('/advantage', [IndexController::class, 'advantage'])->name('advantage');

Route::get('/news', [IndexController::class, 'newsList'])->name('news');

Route::get('/detail/{id}', [IndexController::class, 'detail'])->name('detail');

Route::get('/contact', [IndexController::class, 'contact'])->name('contact');

Route::post('/formsubmit', [IndexController::class, 'formsubmit'])->name('formsubmit');



